//
//  BIAS.h
//  Chart
//
//  Created by CaoJun on 13-7-15.
//
//

#ifndef __Chart__BIAS__
#define __Chart__BIAS__

#include "IndexData.h"

#include <string>

namespace ytx {
    class BIAS : public IndexData{
    public:
        BIAS(IndexConfig indexConfig);
        virtual ~BIAS();

        virtual void calculate(Quotation * data);
        
        virtual void updateLastest(Quotation * data);
        
        virtual std::string getCrosshairYData(int index);
        virtual int getDataLength() const;
        virtual bool hasData() const;
        virtual bool hasData(int index) const;
        virtual std::vector<std::pair<std::string, std::string> > getTopSideText(int index) const;
    };
}


#endif /* defined(__Chart__BIAS__) */
